package com.qtenv.datasync.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author CBL
 * @since 2022-06-22
 */
@Data
@TableName("dw_terminals")
@ApiModel(value = "DwTerminals对象", description = "")
public class Terminals_bf implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备归属水司")
    @TableField("tenant_id")
    private String tenant_id;

    @ApiModelProperty("厂家编号")
    @TableField("SupplierID")
    private Integer SupplierID;

    @ApiModelProperty("设备主键")
    @TableField("TerminalID")
    private String TerminalID;

    @ApiModelProperty("用户编号")
    @TableField(exist = false)
    private String UserID;

    @ApiModelProperty("终端出厂编号")
    @TableField(exist = false)
    private String TerminalFactoryID;

    @ApiModelProperty("表身号")
    @TableField(exist = false)
    private String MNO;

    @ApiModelProperty("终端设备名称")
    @TableField("TerminalName")
    private String TerminalName;

    @ApiModelProperty("终端使用状态(0-停用，1-使用)")
    @TableField("TerminalMark")
    private Integer TerminalMark;

    @ApiModelProperty("终端底数")
    @TableField(exist = false)
    private BigDecimal TerminalBaseNumber;

    @ApiModelProperty("当前表读数")
    @TableField(exist = false)
    private BigDecimal CurrentReadNumber;

    @ApiModelProperty("当前反转流量")
    @TableField(exist = false)
    private BigDecimal CurrentReverseNumber;

    @ApiModelProperty("当前瞬时流量")
    @TableField(exist = false)
    private BigDecimal CurrentInstantNumber;

    @ApiModelProperty("当前净流量")
    @TableField(exist = false)
    private BigDecimal CurrentTotalFlow;

    @ApiModelProperty("当前电池电压")
    @TableField(exist = false)
    private BigDecimal CurrentTerminalVol;

    @ApiModelProperty("是否有压力监测功能	                        1-是、0-否")
    @TableField("CurrentPressure")
    private BigDecimal CurrentPressure;

    @ApiModelProperty("终端出厂日期")
    @TableField(exist = false)
    private Date TerminalFactoryDate;

    @ApiModelProperty("终端安装地址")
    @TableField("TerminalInstallAddr")
    private String TerminalInstallAddr;

    @ApiModelProperty("终端安装日期")
    @TableField("TerminalInstallDate")
    private Date TerminalInstallDate;

    @ApiModelProperty("终端位置纬度")
    @TableField("Lat")
    private String Lat;

    @ApiModelProperty("终端位置经度")
    @TableField("Lng")
    private String Lng;

    @ApiModelProperty("区域编号")
    @TableField(exist = false)
    private String areaID;

    @ApiModelProperty("口径")
    @TableField("Caliber")
    private Integer Caliber;

    @ApiModelProperty("设备类型：0：垂直螺旋机械表；1：水平螺旋机械表；2：超声波水表；3：电磁水表管段式；4：电磁水表插入式")
    @TableField("ModuleType")
    private String ModuleType;

    @ApiModelProperty("采集频率")
    @TableField("CollectionFrequency")
    private Integer CollectionFrequency;

    @ApiModelProperty("上传频率")
    @TableField("UploadFrequency")
    private Integer UploadFrequency;

    @ApiModelProperty("使用性质，1：大用户贸易表；2：监测表")
    @TableField("UseType")
    private Integer UseType;

    @ApiModelProperty("备注")
    @TableField("ReMark")
    private String ReMark;

    @ApiModelProperty("创建时间")
    @TableField("CreateDatetime")
    private Date CreateDatetime;

    @ApiModelProperty("Sim类型")
    @TableField(exist = false)
    private String SimType;

    @ApiModelProperty("SIM卡号")
    @TableField(exist = false)
    private String SIM;

    @ApiModelProperty("IMEI")
    @TableField("IMEI")
    private String IMEI;

    @ApiModelProperty("用户名称")
    @TableField(exist = false)
    private String UserName;

    @ApiModelProperty("用户类型")
    @TableField(exist = false)
    private String UserType;

    @ApiModelProperty("用户门牌号")
    @TableField(exist = false)
    private String UserDoorplate;

    @ApiModelProperty("用户通讯地址")
    @TableField(exist = false)
    private String UserAddress;

    @ApiModelProperty("用户手机号码")
    @TableField(exist = false)
    private String UserPhone;

    @ApiModelProperty("用户身份证号")
    @TableField(exist = false)
    private String UserCode;

    @ApiModelProperty("用户银行账号")
    @TableField(exist = false)
    private String UserAccount;

    @ApiModelProperty("用户收费方式")
    @TableField(exist = false)
    private String UserPayType;

    @ApiModelProperty("用户用水性质")
    @TableField(exist = false)
    private String UserWaterType;

    @ApiModelProperty("用户水价")
    @TableField(exist = false)
    private String UserWaterPrice;

    @ApiModelProperty("用户状态")
    @TableField(exist = false)
    private Integer UserMask;

    @ApiModelProperty("营业所")
    @TableField(exist = false)
    private String UserBelong;

    @ApiModelProperty("表册号")
    @TableField(exist = false)
    private Integer UserBook;

    @ApiModelProperty("区域")
    @TableField(exist = false)
    private String UserArea;

    @ApiModelProperty("开户日期")
    @TableField(exist = false)
    private String StartDate;

    @TableField(exist = false)
    private Realtimegatherdata realtimedata;

    @TableField(exist = false)
    private Date lastTime;
}
